package com.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pojo.dto.AdminAddGoodDto;
import com.pojo.dto.AdminUpdateDto;
import com.pojo.entity.Goods;
import com.pojo.entity.User;

/**
 * @author : 杨世博
 * @date: Created in 15:36 2023/6/9
 */
public interface IAdminService {
    IPage<Goods> addGoods(AdminAddGoodDto adminAddGoodDto);

    IPage<Goods> updateGoods(Goods good);

    IPage<Goods> deleteGoods(Integer goodsId);

    Boolean goodsStatus(Integer goodsId, Boolean goodsStatus);

    IPage<User> getUser(String key, Integer pageNum, Integer size);

    IPage<User> updateUser(AdminUpdateDto adminUpdateDto);

    IPage<User> deleteUser(Integer uid);

    IPage<Goods> getGoods(String key, Integer pageNum, Integer size);
}
